new Vue({
    el:'#app',
    data: {
        id : "",
        username : "",
        password : "",
        gender : "",
        identity : "",
        tele : "",
        address : "",
        age : "",
        root : "",
        store : "",
        sname : "",
    },
    created(){
        let url = window.location.href;
        let info = url.split("?")[1].split("&");
        let id = info[0].split("=")[1];
        this.id = id;
        axios({
            method: 'get',
            url: 'http://47.94.138.204:7790/example/selectuser',
            params:{
                id : this.id,
            },
        }).then((res) => {
            let data = res.data;
            this.password = data.password;
            this.username = data.username;
            this.identity = data.identity;
            this.tele = data.tele;
            this.address = data.address;
            this.root = data.root;
            this.gender = data.gender;
        })




    },


    methods:{
        modify:function ()
        {
            window.location.href="modify_userinfo.html"
        }

    },


})